cmake_minimum_required(VERSION 3.4.1)
#设置不适用OpenSSL
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_CRYPTO")

add_library(
        native-lib
        SHARED
        native-lib.cpp
        Queue.cpp
        RtmpPush.cpp
        CallJava.cpp
        librtmp/amf.c
        librtmp/hashswf.c
        librtmp/log.c
        librtmp/parseurl.c
        librtmp/rtmp.c
        )
find_library(
        log-lib
        log)
target_link_libraries(
        native-lib
        ${log-lib})